
<?php include_once 'top.php'; ?>

<div class="all silde">
	<div class="home-focus-layout">
	<ul id="fullScreenSlides" class="full-screen-slides">
		<?php foreach($scrollpic_list as $list):?>
		<li data-opacity="0.2" style="background:url(<?php echo  SCROLLPIC_IMG.$list['pic']; ?>) no-repeat top center scroll #F2F2F2;"><a href="<?php echo $list['url'];?>"><img src="<?php echo  SCROLLPIC_IMG.$list['pic']; ?>" /></a></li>
		<?php endforeach;?>
	</ul>
    </div>
    <div class="login">	
   		<div class="uarea">
    		<div class="uarea_background">
            <?php if(!empty($userInfo)):?>
                <h2 style="color:#fff; font-size:20px; font-weight:bold; text-align:center; padding-top:10px;">欢迎来到<?php echo CON_PLATFORMNAME;?></h2>
                <div style="color:#E9E9E9; font-size:14px; text-align:center; padding-top:20px; padding-bottom:20px;">
					<i style="color:#E9E9E9; font-size:14px;">账户可用余额</i>
                    <b style="color:#ff9900; font-size:18px;"><?php echo $user_account['use_money'];?></b>元
                </div>
                <span>
                    <a href="/user/center.html" class="registercenter">账户管理</a>
                </span>                
            <?php else:?>
			<p><img src="/resource/images/banner_font_10.png" width="180" height="110"></p>
			<span>
	        <a href="/reg.html" class="registerleft">免费注册</a>
			<a href="/login.html" class="registerright">立即登陆</a>
			</span>
            <?php endif;?>
			</div>
		</div>
    </div>
</div>
<!-- S 正文 -->
<div class="clear h50"></div>
<div class="layout totla">
    <div class="totla-1 nbr"><span><img class="fl" src="/resource/images/index/index_icon1.png" /></span><span><p class="tot-p1">￥88,888,000</p><p class="tot-p3">元</p><p class="tot-p2">累计成交额</p></span></div>
    <div class="totla-1 nbr"><span><img class="fl" src="/resource/images/index/index_icon2.png" /></span><span><p class="tot-p1">88,666</p><p class="tot-p3">人</p><p class="tot-p2">累计成交人数</p></span></div>
    <div class="totla-1 nbr"><span><img class="fl" src="/resource/images/index/index_icon3.png" /></span><span><p class="tot-p1">33,409</p><p class="tot-p3">笔</p><p class="tot-p2">累计投资笔数</p></span></div>
    <div class="totla-1 nbr"><span><img class="fl" src="/resource/images/index/index_icon4.png" /></span><span><p class="tot-p1">￥8,888,666</p><p class="tot-p3">元</p><p class="tot-p2">累计为投资人赚取利息</p></span></div>
	<!--<div class="totla-1"><span>累计投资人<i class="c1"><?php echo $reg['total'];?><s>人</s></i></span></div>
    <div class="totla-1"><span>累计投资总额<i class="c2"><?php jgToYWY($index_tongji['account']);?></i></span></div>
    <div class="totla-1 nbr"><span>为投资人赚获取利益<i class="c3"><?php jgToYWY($income_total_all);?></i></span></div>-->
</div>
<div class="clear h30"></div>
<div class="clear h1" style="border-top:1px solid #e3e3e3;"></div>
<div class="layout mark column">
  <ul>
    <li> <span><img src="/resource/images/index/index_pic11.png"></span>
      <p> <b>收益</b> <i>我们不介入交易</i><i>借款人的利息100%给到投资人</i> </p>
    </li>
    <li> <span><img src="/resource/images/index/index_pic12.png"></span>
      <p> <b>安全</b> <i>运用技术分散投资</i><i>帮助投资人进入本金保障计划</i> </p>
    </li>
    <li> <span><img src="/resource/images/index/index_pic13.png"></span>
      <p> <b>保障</b> <i>不接触资金不赚利差</i><i>最大的保障了平台交易安全</i> </p>
    </li>
    <!--<li> <span><img src="/resource/images/tb_04.png" width="73" height="102"></span>
      <p> <b>随时随地赎回投资</b> <i>突然急用钱想收回投资？2步搞定，最快当天到账</i> </p>
    </li>
    <li style="margin-right:-100px;"> <span><img src="/resource/images/tb_05.png" width="67" height="102"></span>
      <p> <b>选择多</b> <i>突然急用钱想收回投资？2步搞定，最快当天到账</i> </p>
    </li>-->
  </ul>
</div>
<div class="cb"></div>
<div class="layout describe">
    <div class="describe1">
        <p class="describe-p1">猪八借</p>
        <p class="describe-p2">即使到账解决你所有烦恼</p>
        <div class="describe-img"><img src="/resource/images/index/index_pic21.png"/> </div>
    </div>
    <div class="describe1">
        <p class="describe-p1">O2O金融</p>
        <p class="describe-p2">共享的一站式金融服务</p>
        <div class="describe-img"><img src="/resource/images/index/index_pic22.png" style="margin-top:20px;"/> </div>
    </div>
    <div class="describe1">
        <p class="describe-p1">供应链金融</p>
        <p class="describe-p2">打通上下游融资瓶颈</p>
        <div class="describe-img"><img src="/resource/images/index/index_pic23.png"/> </div>
    </div>
    <div class="describe2"><img src="/resource/images/index/index_pic24.png"/></div>
</div>
<div class="clear h10"></div>
<!--<div class="layout list">-->
<!--    <div class="title">-->
<!--        债权超市-->
<!--    </div>-->
<!--    <ul>-->
<!--        <li></li>-->
<!--    </ul>-->
<!--</div>-->
<!-- S 列表 -->
<div class="layout list" style="display: none;">
	<!-- S 标题 -->
	<div class="title">
    	<i class="t1"></i>
    	<h3>新手体验</h3>
        <span><a href="/borrow/blist.html">查看更多</a></span>
    </div>
	<!-- E 标题 -->
    <div class="content">
    	<!-- S 左 -->
        <div class="left">
            <ul class="tbt">
                <li class="xmxq"><span>项目详情</span></li>
                <li class="nhsy">年化收益</li>
                <li class="xmje">项目金额</li>
                <li class="bzfs">保障方式</li>
                <li class="qx">期限</li>
                <li class="jd">进度</li>
                <li class="nul">&nbsp;</li>
            </ul>
            <?php
            $CI = &get_instance();
            $CI->load->model('User_model');
            ?>
            <?php $l=0; foreach($borrow_list_mjb as $list):?>
            <?php $user_list = $CI->User_model->get_by_uid($list['user_id']);?>
            <ul class="tbc <?php if( $l===3 ) echo 'nb'; ?>">
                <li class="xmxq"><span class="c_yh"><a title="<?php echo $list['title'];?>" href="/borrow/obj/<?php echo $list['id'];?>.html"><?php echo mb_substr($list['title'],0,16);?></a></span></li>
                <li class="nhsy"><span><b><?php echo $list['apr'];?></b>%</span></li>
                <li class="xmje"><span><?php echo $list['account'];?></span></li>
                <li class="bzfs">
                	<?php if($user_list['real_status'] == 1 ){ ?>
                    <a href="javascript:void;" title="实名认证"><i class="r1y"></i></a>
                    <?php }else{ ?>
                    <a href="javascript:void;" title="实名认证"><i class="r1n"></i></a>
                    <?php } ?>
                    <?php if($user_list['phone_status'] == 1 ){ ?>
                    <a href="javascript:void;" title="手机认证"><i class="sjy"></i></a>
                    <?php }else{ ?>
                    <a href="javascript:void;" title="手机认证"><i class="sjn"></i></a>
                    <?php } ?>
                    <?php if($user_list['email_status'] == 1 ){ ?>
                    <a href="javascript:void;" title="邮箱认证"><i class="yxy"></i></a>
                    <?php }else{ ?>
                    <a href="javascript:void;" title="邮箱认证"><i class="yxn"></i></a>
                    <?php } ?>
                </li>
                <li class="qx"><?php echo $list['is_day'] ? "{$list['time_limit_day']}</span>天":"{$list['time_limit']}</span>个月";?></li>
                <li class="jd">
                	<div style="margin-top:8px;">
                	<div class="box" id="xs<?php echo $l;?>"></div>
                    </div>
                    <script>box("xs<?php echo $l;?>",<?php echo intval(($list['account_yes']/$list['account'])*100);?>);</script>
				</li>
                <li class="nul"><span><a href="/borrow/obj/<?php echo $list['id'];?>.html" class="ljtb_an"><?php echo borrowStatus($list);?></a></span></li>
            </ul>
            <?php $l++; if( $l === 4 ) break; endforeach;?>
        </div>
        <!-- E 左 -->
        <!-- S 右 -->
        <div class="right">
			<div class="news_h2">
            	<span>新手专区</span>
                <a href="#">查看更多>></a>
            </div>
            <div class="news_Gain">
            	<dl class="news_Gainleft">
                	<dt>年利率</dt>
                    <dd>10-20%</dd>
                </dl>
                <dl class="news_Gainright">
                	<dt>投资期限</dt>
                    <dd>1-3个月</dd>
                </dl>
            </div>
            <div class="news_In">
            	<dl>
                    <dt>新手专享</dt>
                    <dd>注册即送1000体验金，体验金只能用于投新手体验专区的标，且限于未成功投资过的新用户，仅享有一次机会，到期自动扣除本金，返回利息到投资人账户。</dd>
                </dl>
                <dl>
                	<dt>抢标啦</dt>
                    <dd>赶快注册，送钱投标啦！</dd>
                </dl>
            </div>
        </div>
        <!-- E 右 -->
	</div>
</div>
<div class="clear h10"></div>
<div class="layout list">
	<!-- S 标题 -->
	<div class="title">
    	<i class="t2"></i>
    	<h3>我要投资</h3>
        <span><a href="/borrow/blist.html">查看更多</a></span>
    </div>
	<!-- E 标题 -->
    <div class="content">
    	<!-- S 左 -->
        <div class="left">
            <ul class="tbt">
                <li class="xmxq"><span>项目详情</span></li>
                <li class="nhsy">年化收益</li>
                <li class="xmje">项目金额</li>
                <li class="bzfs">保障方式</li>
                <li class="qx">期限</li>
                <li class="jd">进度</li>
                <li class="nul">&nbsp;</li>
            </ul>
            <?php $l=0; foreach($borrow_list as $list):?>
            <?php $user_list = $CI->User_model->get_by_uid($list['user_id']);?>
            <ul class="tbc <?php if( $l===3 ) echo 'nb'; ?>">
                <li class="xmxq"><span class="c_yh"><a href="/borrow/obj/<?php echo $list['id'];?>"><?php echo mb_substr($list['title'],0,16);?></a></span></li>
                <li class="nhsy"><span><b><?php echo $list['apr'];?></b>%</span></li>
                <li class="xmje"><span><?php echo $list['account'];?></span></li>
                <li class="bzfs">
                	<?php if($user_list['real_status'] == 1 ){ ?>
                    <a href="javascript:void;" title="实名认证"><i class="r1y"></i></a>
                    <?php }else{ ?>
                    <a href="javascript:void;" title="实名认证"><i class="r1n"></i></a>
                    <?php } ?>
                    <?php if($user_list['phone_status'] == 1 ){ ?>
                    <a href="javascript:void;" title="手机认证"><i class="sjy"></i></a>
                    <?php }else{ ?>
                    <a href="javascript:void;" title="手机认证"><i class="sjn"></i></a>
                    <?php } ?>
                    <?php if($user_list['email_status'] == 1 ){ ?>
                    <a href="javascript:void;" title="邮箱认证"><i class="yxy"></i></a>
                    <?php }else{ ?>
                    <a href="javascript:void;" title="邮箱认证"><i class="yxn"></i></a>
                    <?php } ?>
                </li>
                <li class="qx"><?php echo $list['is_day'] ? "{$list['time_limit_day']}</span>天":"{$list['time_limit']}</span>个月";?></li>
                <li class="jd">
	                <div style="margin-top:8px;">
                    <div class="box" id="tz<?php echo $l;?>"></div>
                    </div>
                    <script>box("tz<?php echo $l;?>",<?php echo intval(($list['account_yes']/$list['account'])*100);?>);</script>
				</li>
                <li class="nul"><span><a href="/borrow/obj/<?php echo $list['id'];?>.html" class="ljtb_an"><?php echo borrowStatus2($list);?></a>
            </span></li>
            </ul>
            <?php $l++; if( $l === 4 ) break; endforeach;?>
        </div>
        <!-- E 左 -->
        <!-- S 右 -->
        <div class="right">
			<div class="news_h2">
            	<span>投资借款</span>
                <a href="#">查看更多>></a>
            </div>
            <div class="news_Gain">
            	<dl class="news_Gainleft">
                	<dt>年利率</dt>
                    <dd>10-20%</dd>
                </dl>
                <dl class="news_Gainright">
                	<dt>投资期限</dt>
                    <dd>1-3个月</dd>
                </dl>
            </div>
            <div class="news_In">
            	<dl>
                    <dt>借款说明</dt>
                    <dd>所有的标的都经过公司专业的风控团队说明，由深圳市杰海源投资担保有限公司承担连带担保责任，100%本息保障，让投资人无后顾之忧。</dd>
                </dl>
                <dl>
                	<dt>抢标啦</dt>
                    <dd>小贷短期借款标，高收益，低风险，有保障。</dd>
                </dl>
            </div>
        </div>
        <!-- E 右 -->
	</div>
</div>



<div class="clear h10"></div>
<div class="layout list">
	<!-- S 标题 -->
	<div class="title">
    	<i class="t3"></i>
    	<h3>我要转让</h3>
        <span><a href="#">查看更多</a></span>
    </div>
	<!-- E 标题 -->
    <div class="content">
    	<!-- S 左 -->
        <div class="left">
            <ul class="tbt">
                <li class="xmxq"><span>项目详情</span></li>
                <li class="nhsy">年化收益</li>
                <li class="xmje">项目金额</li>
                <li class="bzfs">保障方式</li>
                <li class="qx">期限</li>
                <li class="jd">进度</li>
                <li class="nul">&nbsp;</li>
            </ul>
            <?php $l=0; foreach($creditorList['list'] as $list):?>
            <?php $user_list = $CI->User_model->get_by_uid($list['user_id']);?>
            <ul class="tbc <?php if( $l===3 ) echo 'nb'; ?>">
                <li class="xmxq"><span class="c_yh"><a title="<?php echo $list['title'];?>" href="/borrow/creditor/<?php echo $list['id'];?>.html"><?php echo mb_substr($list['title'],0,16);?></a></span></li>
                <li class="nhsy"><span><b><?php echo $list['apr'];?></b>%</span></li>
                <li class="xmje"><span><?php echo $list['account'];?></span></li>
                <li class="bzfs">
                	<?php if($user_list['real_status'] == 1 ){ ?>
                    <a href="javascript:void;" title="实名认证"><i class="r1y"></i></a>
                    <?php }else{ ?>
                    <a href="javascript:void;" title="实名认证"><i class="r1n"></i></a>
                    <?php } ?>
                    <?php if($user_list['phone_status'] == 1 ){ ?>
                    <a href="javascript:void;" title="手机认证"><i class="sjy"></i></a>
                    <?php }else{ ?>
                    <a href="javascript:void;" title="手机认证"><i class="sjn"></i></a>
                    <?php } ?>
                    <?php if($user_list['email_status'] == 1 ){ ?>
                    <a href="javascript:void;" title="邮箱认证"><i class="yxy"></i></a>
                    <?php }else{ ?>
                    <a href="javascript:void;" title="邮箱认证"><i class="yxn"></i></a>
                    <?php } ?>
                </li>
                <li class="qx"><?php echo $list['is_day'] ? "{$list['time_limit_day']}</span>天":"{$list['time_limit']}</span>个月";?></li>
                <li class="jd">
                	<div style="margin-top:8px;">
                    <div class="box" id="zr<?php echo $l;?>"></div>
                    </div>
                    <script>box("zr<?php echo $l;?>",<?php echo intval(($list['account_yes']/$list['account'])*100);?>);</script>
				</li>
                <li class="nul"><span><a href="/borrow/creditor/<?php echo $list['id'];?>" class="ljtb_an">立即投资</a>
            </span></li>
            </ul>
            <?php $l++; if( $l === 4 ) break; endforeach;?>
        </div>
        <!-- E 左 -->
        <!-- S 右 -->
        <div class="right">
			<div class="news_h2">
            	<span>债权转让</span>
                <a href="#">查看更多>></a>
            </div>
            <div class="news_Gain">
            	<dl class="news_Gainleft">
                	<dt>年利率</dt>
                    <dd>10-20%</dd>
                </dl>
                <dl class="news_Gainright">
                	<dt>投资期限</dt>
                    <dd>1-3个月</dd>
                </dl>
            </div>
            <div class="news_In">
            	<dl>
                    <dt>转让说明</dt>
                    <dd>不改变合同内容的合同转让，债权人通过平台，债权转让第三人订立合同将债权的全部或部分转移于第三人。</dd>
                </dl>
                <dl>
                	<dt>抢标啦</dt>
                    <dd>急需用钱，转让手中的债权。</dd>
                </dl>
            </div>
        </div>
        <!-- E 右 -->
	</div>
</div>
<!-- E 列表 -->

<div class="dynamic">
  <div class="dynamic-box">
     <div class="dynamic_left">
	    <div class="dynamic_gg">
		<span class="detailed"><a href="/site/announcement/gonggao.html">查看更多>></a></span>
		   <span class="notice_1">行业动态</span>
		   <span class="notice_2">Notice</span>
		   
		</div>
	    <div class="dynamic_text">
		  <ul>
			<?php $l=0;foreach($gonggao_list as $list):?>
				<li<?php if( $l===3 ) echo ' id="dynamic_last_li"'; ?>><span><?php echo date('Y-m-d',$list['ptime']);?></span><b>公告：</b><a href="/site/view/<?php echo $list['id']; ?>.html"><?php echo mb_substr($list['title'],0,16);?></a></li>
            <?php $l++; if( $l === 4 ) break; endforeach;?>
		  </ul>
		</div>
	 </div>
     <div class="dynamic_center">
	 <div class="dynamic_gg">
	       <span class="detailed"><a href="/site/announcement/company.html">查看更多>></a></span>
		   <span class="notice_1">公司资讯</span>
		   <span class="notice_2">Notice</span>
		   
		</div>
	    <div class="dynamic_text" id="dynamic_text1">
		  <ul>
			<?php foreach($company_list as $list):?>
		      <li<?php if( $l===3 ) echo ' id="dynamic_last_li"'; ?>><span><?php echo date('Y-m-d',$list['ptime']);?></span><b>公告：</b><a href="/site/view/<?php echo $list['id']; ?>.html"><?php echo mb_substr($list['title'],0,16);?></a></li>
			<?php $l++; if( $l === 4 ) break; endforeach;?>
		  </ul>
		</div>
	 
	 
	 </div>
     <div class="dynamic_right">
	   <div class="dynamic_rt">
	      <ul id="tab-list-li">
		  <li class="ph" onclick="changeTab(this)">总排行</li>
		  <li onclick="changeTab(this)">周排行</li>
	      <li onclick="changeTab(this)">月排行</li>
		  </ul>
	   </div>
	  <div class="dynamic_text2 linksQWap">
      	<div class="tab-con">
		  <ul>
          		<?php $i=0; foreach($total_rank as $k=>$list) { $i++;?>
		      <li class="li<?php echo $i;?>"><span class="name"><?php echo substr($list['username'],0,2).'****';?></span><span class="money">￥<?php echo $list['money'];?></span></li>
              <?php }?>
		  </ul>
         </div>
         <div class="tab-con" style="display: none;">
		  <ul>
          		<?php foreach($month_rank as $k=>$list) {?>
		      <li class="li<?php echo $i;?>"><span class="name"><?php echo substr($list['username'],0,2).'****';?></span><span class="money">¥<?php echo $list['money'];?></span></li>
				<?php }?>
		  </ul>
         </div>
         <div class="tab-con" style="display: none;">
		  <ul>
          		<?php foreach($week_rank as $k=>$list) {?>
		      <li class="li<?php echo $i;?>"><span class="name"><?php echo substr($list['username'],0,2).'****';?></span><span class="money">￥<?php echo $list['money'];?></span></li>
				<?php }?>
		  </ul>
         </div>
		</div>
	 
	 
	 </div>
  </div>
<div class="hezuo" >
  <div class="hz-h1">
    <img src="/resource/images/22.jpg"/>
  </div>
  <div class="hz-phto">
   <div class="hz-center">
      <ul> 
		<?php $l=1;foreach($cases_list as $list):?>
	    <li<?php if( $l%6 === 0 ) echo " class='hz-lastli'";?>><a target="_blank" href="<?php echo $list['url'];?>"><img src="<?php echo CON_STATIC_URL;?>data/upfiles/links/<?php echo $list['logoimg'];?>"></a></li>
        <?php $l++; if( $l > 30 ) break; endforeach;?>
	  </ul>
   </div>
   <div class="clear h20"></div>
  </div>
</div>
<div class="yinying"></div>
</div>
<div class="clear h20"></div>
<?php include "footer.php";?>
<script src="/resource/js/index.js"></script>
</body>
</html>